package pers.kw.server.persist.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import pers.kw.server.persist.entity.OrderDetailDO;

import java.util.List;

public interface OrderDetailDao extends JpaRepository<OrderDetailDO, Long> {

    @Query(value = "from OrderDetailDO where yn=1 and orderNo=:orderNo")
    List<OrderDetailDO> listByOrderNo(@Param("orderNo") String orderNo);
}
